const mongoose = require('mongoose');
const moment = require('moment');
moment.locale('zh-cn');

const schema = new mongoose.Schema({
    title: {type: String},
    content: {type: String},
    startTime: {
        type: String,
        default: () => {
            return moment().format('YYYY-MM-DD HH:mm:ss')
        }
    }
});

module.exports = mongoose.model('Notice', schema);